<div id="device">
	<div id="title"><%=h @device.name %></div>
    <div id="desc"><%=h @device.desc %></div>
    <div id="stats">
    	<b>Use DC:</b><%=h (@device.get_ts_max+10) %><BR>
		<b>Market Value:</b><%=h @device.cmv.round(2) %>GP<BR>
		<b>Fd:</b><%=h @device.fd %><BR>
		<b>Timefactor:</b><%=h @device.timefactor %><BR>
		<b>Time scale:</b><%=h @device.timescale %><BR>
		<b>Malfuction Rating:</b><%=h @device.mr %><BR>
		<b>CS Score:</b><%=h @device.get_cs_score %><BR>
		<b>Size:</b><%=h @device.size.name %><BR>
		<b>Hardness</b><%=h @device.size.hardness%>	<BR>
		<b>Hit Points</b><%=h @device.size.hp%>	<BR>
		
	<div id="feature">
		<%= render :partial => 'device_feature_list', :collection => @device.device_features %><br/>
		Features:<%=h @device.features.count %> out of <%=h @device.size.max_features %></div>
	</div>
	<div id="footer">|<%= link_to 'Edit', edit_device_path(@device) %>|<%= link_to 'Back', devices_path %>|</div>
</div>

